package com.neusoft.hifly.push.sms.gateway.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Title: 短信服务
 * <p>
 * Description: 短信配置
 * <p>
 * Copyright: 2019
 * <p>
 * Company: 东软汉枫
 *
 * @author lh_neu
 * @version 1.0.0
 */
@Component
public class SMSConfig {

	// 是否使用短信
	@Value("${sms.use:false}")
	private boolean use;

	// 数据库类型
	@Value("${sms.db.type:null}")
	private String dbType;

	// 是否显示SQL语句
	@Value("${sms.show.sql:null}")
	private String showSql;

	// 驱动
	@Value("${sms.driver:null}")
	private String driver;

	// 数据库连接
	@Value("${sms.url:null}")
	private String url;

	// 用户名
	@Value("${sms.user.name:null}")
	private String userName;

	// 密码
	@Value("${sms.user.pwd:null}")
	private String pwd;

	public boolean isUse() {
		return use;
	}

	public void setUse(final boolean use) {
		this.use = use;
	}

	public String getDbType() {
		return dbType;
	}

	public void setDbType(final String dbType) {
		this.dbType = dbType;
	}

	public String getShowSql() {
		return showSql;
	}

	public void setShowSql(final String showSql) {
		this.showSql = showSql;
	}

	public String getDriver() {
		return driver;
	}

	public void setDriver(final String driver) {
		this.driver = driver;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(final String url) {
		this.url = url;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(final String userName) {
		this.userName = userName;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(final String pwd) {
		this.pwd = pwd;
	}

}
